<?php 

$id = $_POST['id'];

//445281 1986 11 24 1877
$preg = "/^[1-9][0-9]{5}(19[0-9]{2}|20(0[0-9]|1[0-6]))(0[1-9]|1[0-2])(0[1-9]|[12][0-9]|3[0-1])[0-9]{3}[0-9x]$/";

$c = preg_match($preg, $id);

if($c){
	echo "通过";
}else{
	echo "不通过";
}






 ?>